"""
怎样快速实现如下3个函数的执行时间的统计
"""


def calculate_10w():
    """
    计算100000以内的每个数的立方和
    :return:
    """
    sum_ret = 0
    for i in range(1, 100001):
        sum_ret += i ** 3
    print("10w以内的每个数的立方和为：", sum_ret)


def calculate_10w2():
    """
    计算100000以内的每个数的立方和
    :return:
    """
    sum_ret = 0
    for i in range(1, 100001):
        sum_ret += i ** 3
    print("10w以内的每个数的立方和为：", sum_ret)


def calculate_10w3():
    """
    计算100000以内的每个数的立方和
    :return:
    """
    sum_ret = 0
    for i in range(1, 100001):
        sum_ret += i ** 3
    print("10w以内的每个数的立方和为：", sum_ret)
